<ion-view view-title="提交数据">
    <ion-content>
        <div class="submitData">
            <form name="reportInfo" >
                <div class="form-group date">
                    <label>日期:</label>
                    <div class="input-group date form_date col-md-5 c-selectDete"  data-date="" data-date-format="yyyy-mm-dd" data-link-field="dtp_input2" data-link-format="yyyy-mm-dd">
                        <input class="form-control" size="16" type="text"   readonly>
                        <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                        <input type="text" id="dtp_input2" name="subDate"  ng-model="storeData.subDate" ng-hide="true" class="js-subdate subdate">
                    </div>
                </div>
                <div class="form-group">
                    <label>桌数:</label>
                    <div class="formError" ng-show="reportInfo.tableSize.$error.pattern || reportInfo.tableSize.$error.required">请填写正确的桌数</div>
                    <input type="text" class="form-control" name="tableSize" placeholder="正整数"  ng-model="storeData.tableSize" required ng-pattern="/^[1-9]\d*$/">
                </div>
                <div class="form-group">
                    <label>人数:</label>
                    <div class="formError" ng-show="reportInfo.peopleSize.$error.pattern || reportInfo.peopleSize.$error.required">请填写正确的就餐人数</div>
                    <input type="text" class="form-control" name="peopleSize" placeholder="正整数" ng-model="storeData.peopleSize" required ng-pattern="/^[1-9]\d*$/">
                </div>
                <div class="form-group">
                    <label>打包:</label>
                    <div class="formError" ng-show="reportInfo.packSize.$error.pattern || reportInfo.packSize.$error.required">请填写正确的打包数量</div>
                    <input type="text" class="form-control" name="packSize" placeholder="正整数" ng-model="storeData.packSize" required ng-pattern="/^[1-9]\d*$/">
                </div>
                <div class="form-group">
                    <label>客单价:</label>
                    <div class="formError" ng-show="reportInfo.pct.$error.pattern || reportInfo.pct.$error.required">请填写正确的客单价</div>
                    <input type="text" class="form-control" name="pct" placeholder="最多两位小数" ng-model="storeData.pct" required ng-pattern="/^([1-9][0-9]*)+(.[0-9]{1,2})?$/">
                </div>
                <div class="form-group">
                    <label>营业额:</label>
                    <div class="formError" ng-show="reportInfo.money.$error.pattern || reportInfo.money.$error.required">请填写正确的当日营业额</div>
                    <input type="text" class="form-control" name="money" placeholder="最多两位小数" ng-model="storeData.money" required ng-pattern="/^([1-9][0-9]*)+(.[0-9]{1,2})?$/">
                </div>
                <div class="form-group">
                    <label>月营业额:</label>
                    <div class="formError" ng-show="reportInfo.monthMoney.$error.pattern || reportInfo.monthMoney.$error.required">请填写正确的月营业额</div>
                    <input type="text" class="form-control" name="monthMoney" placeholder="最多两位小数" ng-model="storeData.monthMoney" required ng-pattern="/^([1-9][0-9]*)+(.[0-9]{1,2})?$/">
                </div>
                <!-- <div class="list card">
                    <label class="item item-input item-stacked-label">
                        <span class="input-label">{{storeData.storeName}}</span>
                    </label>
                    <label class="item item-input item-stacked-label">
                        <span class="input-label">日期</span> 
                        <div class="input-group date form_date col-md-5 c-selectDete"  data-date="" data-date-format="yyyy-mm-dd" data-link-field="dtp_input2" data-link-format="yyyy-mm-dd">
                            <input class="form-control" size="16" type="text"   readonly>
                            <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                        </div>
                        <input type="text" id="dtp_input2" name="subDate"  ng-model="storeData.subDate" ng-hide="true" class="js-subdate">
                    </label>
                    <label class="item item-input item-stacked-label">
                        <span class="input-label">桌数</span>
                        <input type="text" name="tableSize" placeholder="正整数"  ng-model="storeData.tableSize" required ng-pattern="/^[1-9]\d*$/">
                    </label>
                    <label class="item item-input item-stacked-label">
                        <span class="input-label">人数</span>
                        <input type="text" name="peopleSize" placeholder="正整数" ng-model="storeData.peopleSize" required ng-pattern="/^[1-9]\d*$/">
                    </label>
                    <label class="item item-input item-stacked-label">
                        <span class="input-label">打包</span>
                        <input type="text" name="packSize" placeholder="正整数" ng-model="storeData.packSize" required ng-pattern="/^[1-9]\d*$/">
                    </label>
                    <label class="item item-input item-stacked-label">
                        <span class="input-label">客单价</span>
                        <input type="text" name="pct" placeholder="最多两位小数" ng-model="storeData.pct" required ng-pattern="/^([1-9][0-9]*)+(.[0-9]{1,2})?$/">
                    </label>
                    <label class="item item-input item-stacked-label">
                        <span class="input-label">营业额</span>
                        <input type="text" name="money" placeholder="最多两位小数" ng-model="storeData.money" required ng-pattern="/^([1-9][0-9]*)+(.[0-9]{1,2})?$/">
                    </label>
                    <label class="item item-input item-stacked-label">
                        <span class="input-label">月营业额</span>
                        <input type="text" name="monthMoney" placeholder="最多两位小数" ng-model="storeData.monthMoney" required ng-pattern="/^([1-9][0-9]*)+(.[0-9]{1,2})?$/">
                    </label>
                </div> -->
                <div class="form-group">
                    <button class="btn submitDataButton" ng-click="submitData(reportInfo.$valid)">提交</button>
                </div>
            </form>
        </div>
    </ion-content>
</ion-view>
